package com.mybatisplus.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Copyright (c) 2023-2033 All Rights Reserved
 *
 * 使用lombok快速生成实体类常用方法
 * 无参构造、Getter、Setter、toString
 *
 * 有参构造需要手动添加
 *
 * @date: 2023/10/19
 */

@Data
@NoArgsConstructor
public class User {

    // 数据库字段类型为bigint，这里用Long
    private Long id;

    private String name;

    private Integer age;

    private String email;

    public User(Long id, String name, Integer age, String email) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.email = email;
    }
}
